"""
WSGI生产环境入口
"""
import os
from dotenv import load_dotenv
from app import create_app

# 加载环境变量
load_dotenv()

# 创建应用实例
app = create_app(os.getenv('FLASK_ENV', 'production'))

if __name__ == '__main__':
    from waitress import serve
    print("Starting production server with Waitress...")
    serve(app, host='0.0.0.0', port=5000)










